import * as types from './mutation_type'

export default {
	[types.SUCCESS_LIST_HOSTGROUP] (state, hostgroupList) {
		state.hostgroupList = hostgroupList
	},
	[types.FAILURE_LIST_HOSTGROUP] (state) {
		state.hostgroupList = []
	},
	[types.SUCCESS_ADD_DEVICE] (state, deviceList) {
		state.hostgroupList.concat(deviceList);
		// state.hostgroupList = deviceList
	}
}
